home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / TDE10SRC.ARJ / TDEFUNC.H < prev    next >
Text File  |  1991-06-05  |  7KB  |  184 lines

  1. /*
  2.  * New editor name:  tde, the Thomson-Davis Editor.
  3.  * Author:           Frank Davis
  4.  * Date:             June 5, 1991
  5.  *
  6.  * This modification of Douglas Thomson's code is released into the
  7.  * public domain, Frank Davis.  You may distribute it freely.
  8.  *
  9.  * This file contains all the prototypes for every function in tde.
  10.  */
  11.  
  12. /*************************  function prototypes in block.c *************/
  13. void mark_block( windows *, int );
  14. void unmark_block( windows * );
  15. void restore_marked_block( windows *, int );
  16. int  prepare_block( windows *, file_infos *, text_ptr, int, int );
  17. void pad_dest_line( windows *, file_infos *, text_ptr );
  18. void move_copy_delete_overlay_block( windows *, int );
  19. void load_buff( char *, text_ptr, int, int, int );
  20. int  copy_buff_2file( windows *, char *, text_ptr, int, int, int, int );
  21. void block_fill( char *, int, int );
  22. void restore_start_end( file_infos *, file_infos *, long, long, int );
  23. void restore_cursors( file_infos *, file_infos * );
  24. void delete_blocked_block( windows *, text_ptr, int, int, int, int );
  25. void check_block( windows * );
  26. void find_begblock( file_infos * );
  27. void find_endblock( file_infos * );
  28. void block_write( windows * );
  29. void block_print( windows * );
  30. int  get_block_fill_char( windows *, int * );
  31. void block_expand_tabs( windows * );
  32. /************************************************************************/
  33.  
  34.  
  35. /*************************  function prototypes in ed.c *****************/
  36. void tab_key( windows * );
  37. void insert_newline( windows *, int, int );
  38. void insert_overwrite( windows *, int );
  39. void join_line( windows * );
  40. void dup_line( windows * );
  41. void char_del_left( windows * );
  42. void line_kill( windows * );
  43. void char_del_under( windows * );
  44. void eol_kill( windows * );
  45. void goto_left( windows * );
  46. void goto_right( windows * );
  47. void goto_top( windows * );
  48. void goto_bottom( windows * );
  49. void set_tabstop( int );
  50. void show_line_col( windows * );
  51. void command( windows *, int * );
  52. void editor( int, char *[] );
  53. /************************************************************************/
  54.  
  55. /*************************  function prototypes in findrep.c ************/
  56. int  get_replacement_flags( int );
  57. int  ask_replace( windows *, int * );
  58. void do_replace( windows *, text_ptr, int );
  59. void find_string( windows *, int, int );
  60. void build_boyer_array( );
  61. text_ptr  forward_boyer_moore_search( windows * );
  62. text_ptr  backward_boyer_moore_search( windows * );
  63. void find_adjust( windows *, text_ptr );
  64. void replace_string( windows *, int );
  65. int  replace_and_display( windows *, text_ptr, int *, int *, int );
  66. void goto_top_file( windows * );
  67. void goto_end_file( windows * );
  68. text_ptr  scan_forward( text_ptr, char, char );
  69. text_ptr  scan_backward( text_ptr, char, char );
  70. void match_pair( windows * );
  71. void goto_line( windows * );
  72. /************************************************************************/
  73.  
  74. /*************************  function prototypes in main.c  **************/
  75. void main( int, char *[] );
  76. void error( int, int, char * );
  77. #if defined( __MSC__ )
  78. int  interrupt far harmless( void );
  79. #else
  80. static int harmless( void );
  81. #endif
  82. void hw_xygoto( void );
  83. void hw_terminate( void );
  84. void hw_initialize( void );
  85. #if defined (__MSC__)
  86.    void video_config( struct vcfg *cfg );
  87. #endif
  88. void hw_move( text_ptr, text_ptr, long );
  89. int  hw_fattrib( char * );
  90. int  hw_set_fattrib( char *, int );
  91. int  hw_unlink( char *, int );
  92. int  write_file( char *, char *, text_ptr, text_ptr, int, int );
  93. int  hw_save( char *, text_ptr, text_ptr, int, int );
  94. int  hw_append( char *, text_ptr, text_ptr, int, int );
  95. int  hw_print( text_ptr, text_ptr, int, int );
  96. int  hw_load( char *, text_ptr, text_ptr, text_ptr *, int );
  97. void get_help( windows * );
  98. void show_credits( );
  99. /************************************************************************/
  100.  
  101. /*************************  function prototypes in hwind.c **************/
  102. void xygoto( int, int );
  103. void save_screen_line( int, int, char * );
  104. void restore_screen_line( int, int, char * );
  105. void force_blank( void );
  106. void initialize( void );
  107. void show_modes( void );
  108. void show_file_count( int );
  109. void show_avail_mem( );
  110. void show_indent_mode( );
  111. void show_search_case( );
  112. void terminate( void );
  113. void window_scroll_up( int, int );
  114. void window_scroll_down( int, int );
  115. void combine_strings( char *, char *, char *, char * );
  116. /************************************************************************/
  117.  
  118. /*************************  function prototypes in utils.c **************/
  119. int  myisalnum( int );
  120. void check_virtual_col( windows *, int, int );
  121. void copy_line( text_ptr, int );
  122. void un_copy_line( text_ptr, int );
  123. int  load_file( char * );
  124. void set_prompt( char *, int );
  125. int  get_name( char *, int, char *, int );
  126. int  get_yn( void );
  127. int  get_oa( void );
  128. void display_current_window( windows * );
  129. void redraw_screen( windows * );
  130. void show_changed_line( windows * );
  131. void dup_window_info( windows *, windows * );
  132. void adjust_windows_cursor( windows *, long, int );
  133. void adjust_start_end( file_infos *, long );
  134. int  first_non_blank( char * );
  135. void page_up( windows * );
  136. void page_down( windows * );
  137. void scroll_down( windows * );
  138. void scroll_up( windows * );
  139. void save_file( windows * );
  140. void save_as_file( windows * );
  141. void show_window_header( char *, windows * );
  142. void show_size_name( windows * );
  143. void show_size( windows * );
  144. void quit( windows *, int * );
  145. void move_up( windows * );
  146. void move_down( windows * );
  147. void move_left( windows * );
  148. void move_right( windows * );
  149. void word_left( windows * );
  150. void word_right( windows * );
  151. /************************************************************************/
  152.  
  153. /*************************  function prototypes in window.c *************/
  154. int  initialize_window( );
  155. void new_window( char *, windows * );
  156. void choose_window( char *, windows * );
  157. void next_window( windows * );
  158. void prev_window( windows * );
  159. void split_screen( windows * );
  160. void size_window( windows * );
  161. void setup_window( windows * );
  162. void finish( windows *, int * );
  163. int  create_window( windows **, int, int, file_infos * );
  164. int  edit_file( char * );
  165. void edit_another_file( windows * );
  166. /************************************************************************/
  167.  
  168. /*************************  function prototypes in tdeasm.c *************/
  169. text_ptr cpf( text_ptr );
  170. text_ptr cpb( text_ptr );
  171. unsigned long ptoul( text_ptr );
  172. text_ptr addltop( long, text_ptr );
  173. int  find_CONTROL_Z( text_ptr );
  174. int  linelen( text_ptr );
  175. int  prelinelen( text_ptr );
  176. text_ptr  find_next( text_ptr );
  177. text_ptr  find_prev( text_ptr );
  178. void update_line( windows * );
  179. void update_char( windows *, int, int, int );
  180. void c_output( int, int, int, int );
  181. void s_output( char *, int, int, int );
  182. void eol_clear( int, int, int );
  183. /*****************************************************/
  184.